package com.imooc.o2o.util;

/**
 * @author 徐老板
 * @date 2020/1/19   19:38
 */
public class PageCalcultaor {
    public static int calculateRowerIndex(int pageIndex,int pageSize){
        return (pageIndex>0)?(pageIndex-1)*pageSize:0;
    }
}
